for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2 - 1, clip->rects[i].y2 - 1 };
+ clip->rects[i].x2, clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
impl->surface->TileBlit (impl->surface, surface, NULL, x, y);
}
else
{
- /* FIXME: clipping! */
- DFBRegion region = { x, y, x + width, y + height };
+ DFBRegion region = { x, y, x + width+1, y + height+1 };
+ impl->surface->SetClip (impl->surface, ®ion);
/* DirectFB does not draw rectangles the X way. Using DirectFB,
a filled Rectangle has the same size as a drawn one, while
X draws the rectangle one pixel taller and wider. */
impl->surface->DrawRectangle (impl->surface,
x, y, width + 1, height + 1);
+ impl->surface->SetClip (impl->surface, NULL);
_gdk_directfb_update (impl, ®ion);
}
for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2 - 1, clip->rects[i].y2 - 1 };
+ clip->rects[i].x2 , clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
impl->surface->FillTriangle (impl->surface,
for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2 - 1, clip->rects[i].y2 - 1 };
+ clip->rects[i].x2 , clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
impl->surface->Blit (impl->surface, src_impl->surface, &rect,
for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2-1, clip->rects[i].y2-1 };
+ clip->rects[i].x2, clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2-1, clip->rects[i].y2-1 };
+ clip->rects[i].x2, clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
impl->surface->DrawLines (impl->surface, lines, npoints - 1);
for (i = 0; i < clip->numRects; i++)
{
DFBRegion reg = { clip->rects[i].x1, clip->rects[i].y1,
- clip->rects[i].x2 - 1, clip->rects[i].y2 - 1 };
+ clip->rects[i].x2 , clip->rects[i].y2 };
impl->surface->SetClip (impl->surface, ®);
impl->surface->Blit (impl->surface,
GdkRegion *region)
{
DFBRegion reg = { region->extents.x1, region->extents.y1,
- region->extents.x2 - 1, region->extents.y2 - 1 };
+ region->extents.x2 , region->extents.y2 };
_gdk_directfb_update (impl, ®);
}